import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'
import loginview from '@/views/login/index.vue'
import feedbackview from '@/views/feedbacktask/index.vue'
import measureview from '@/views/measure/index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
     {
      path: '/',
      redirect: '/login', // 修复：使用redirect
    },
    {
      path: '/login',
      component: loginview
    },
    {
      path: '/measure',
      name: 'measure',
       component: () => import('@/views/measure/index.vue'),
    },
    {
      path: '/feedbacktask',
      name: 'feedbacktask',
      component: feedbackview
    }
  ]
})

export default router
